Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image_picker] Removes use of PHAsset on IOS 14+ #8190

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

WenHaozhan
Copy link

@WenHaozhan WenHaozhan commented Nov 27, 2024

Original PR #8020
Fixes issue flutter/flutter#90373

Currently on IOS 14+, images are picked using PHPickerViewController which does not need photo permissions and also gets the full image metadata regardless of requestFullMetadata. However, it currently retrieves the metadata using PHAsset which does require permission and causes the gallery opening twice issue. Another issue is that an error is thrown when permission is denied even if none are required.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@loic-sharma
Copy link
Member

@WenHaozhan Hey there, thanks for updating this! I think this PR looks good, but I'm new to this package and I'd like to confirm with my co-workers. It's the holidays in the US, so I will likely loop back next week. I apologize for the delay

Copy link
Member

@loic-sharma loic-sharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants